<?php 

   /**
    *
    * FILE:          phpheader.php
    * LOCATION:      /root/includes/
    * REFERENCES:    admin.php
    *                index.php 
    * FUNCTION:      starts session and tests if user is already
    *                logged in to access this page
    * DEPENDENCIES:  none
    *                
    * 
    * --> LAST CODE MERGE FROM HALFSLIDE:  9-26-07
    * ==============================================================================
    * 
    * @version $Id: phpheader.php,v 0.1 2007/09/3
    * @copyright Copyright (c) none
    * @author Peter Holcomb
    * @license http://opensource.org/licenses/gpl-license.php GNU General 
    * Public License (GPL)
    * 
    * ==============================================================================
    */

   //have this on to hide errors on localhost
   error_reporting(0);

   session_start();

   if(!isset($_SESSION['logged_in'])){
	  
     header("Location:index.php?Status=You must login before accessing this page.");

   }else{
	
      $loggedIn = $_SESSION['logged_in'];
	
	}
	
?>